//
//  YZLTagCell.m
//  Car
//
//  Created by dllo on 15/11/2.
//  Copyright © 2015年 岳明. All rights reserved.
//

#pragma mark - **标签的列表的 collectionViewCell

#import "YZLTagCell.h"

@implementation YZLTagCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.tagLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.tagLabel];

        self.tagLabel.textAlignment = NSTextAlignmentCenter;
        self.tagLabel.font = [UIFont systemFontOfSize:15];
    }
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes {
    self.tagLabel.frame = self.contentView.frame;
}

@end
